package com.eportal.ORM;

import java.sql.Timestamp;

import com.eportal.core.Util;

public class NetPay {
	private String id;
	private String trancode;
	private String areacode;
	private String merchantid;
	private Timestamp trandatetime;
	private String pan;
	private String entrycode;
	private String tranamt;
	private String chinfo;
	private String issbin;
	private String custname;
	private String prodinfo;
	private String custemail;
	private String msgext;
	private String respcode;
	private String respdesc;
	private String settledate;
	private String setlamt;
	private String cupstracenum;
	private String cupssystime;
	private String orgcode;
	private String panIn;
	private String merordernum;
	private String pepdate;
	private String remark;
	private String allsum;
	
	
	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getAllsum() {
		return allsum;
	}

	public void setAllsum(String allsum) {
		this.allsum = allsum;
	}

	public NetPay(NetPayJnls net){
		 trancode = net.getTrancode();
		 areacode = net.getAreacode();
		 merchantid = net.getMerchantid();
		 trandatetime = net.getTrandatetime();
		 pan = net.getPan();
		 if(pan!=null)
			 pan = Util.toInCard(pan);
		 entrycode = net.getEntrycode();
		 tranamt = net.getTranamt();
		 chinfo = net.getChinfo();
		 issbin = net.getIssbin();
		 custname = net.getCustname();
		 prodinfo = net.getProdinfo();
		 custemail = net.getCustemail();
		 msgext = net.getMsgext();
		 respcode = net.getRespcode();
		 respdesc = net.getRespdesc();
		 settledate = net.getSettledate();
		 setlamt = net.getSetlamt();
		 cupstracenum = net.getCupstracenum();
		 cupssystime = net.getCupssystime();
		 orgcode = net.getOrgcode();
		 panIn = net.getPanIn();
		 merordernum = net.getId().getMerordernum();
		 pepdate = net.getId().getPepdate();
		 remark = net.getRemark();
	}
	public NetPay(NetPayJnlsPl net){
		 trandatetime = new Timestamp(net.getTrandatetime().getTime());
		 pan = net.getPan();
		 id = net.getId()+"";
		 if(pan!=null)
			 pan = Util.toInCard(pan);
		 entrycode = net.getEntrycode();
		 tranamt = net.getTranamt();
		 chinfo = net.getChinfo();
		 issbin = net.getIssbin();
		 custname = net.getCustname();
		 prodinfo = net.getProdinfo();
		 custemail = net.getCustemail();
		 msgext = net.getMsgext();
		 respcode = net.getRespcode();
		 respdesc = net.getRespdesc();
		 settledate = net.getSettledate();
		 setlamt = net.getSetlamt();
		 cupstracenum = net.getCupstracenum();
		 cupssystime = net.getCupssystime();
		 orgcode = net.getOrgcode();
		 panIn = net.getPanIn();
		 pepdate = net.getPepdate();
		 remark = net.getRemark();
	}
	
	public String getTrancode() {
		return trancode;
	}
	public void setTrancode(String trancode) {
		this.trancode = trancode;
	}
	public String getAreacode() {
		return areacode;
	}
	public void setAreacode(String areacode) {
		this.areacode = areacode;
	}
	public String getMerchantid() {
		return merchantid;
	}
	public void setMerchantid(String merchantid) {
		this.merchantid = merchantid;
	}
	public Timestamp getTrandatetime() {
		return trandatetime;
	}
	public void setTrandatetime(Timestamp trandatetime) {
		this.trandatetime = trandatetime;
	}
	public String getPan() {
		return pan;
	}
	public void setPan(String pan) {
		this.pan = pan;
	}
	public String getEntrycode() {
		return entrycode;
	}
	public void setEntrycode(String entrycode) {
		this.entrycode = entrycode;
	}
	public String getTranamt() {
		return tranamt;
	}
	public void setTranamt(String tranamt) {
		this.tranamt = tranamt;
	}
	public String getChinfo() {
		return chinfo;
	}
	public void setChinfo(String chinfo) {
		this.chinfo = chinfo;
	}
	public String getIssbin() {
		return issbin;
	}
	public void setIssbin(String issbin) {
		this.issbin = issbin;
	}
	public String getCustname() {
		return custname;
	}
	public void setCustname(String custname) {
		this.custname = custname;
	}
	public String getProdinfo() {
		return prodinfo;
	}
	public void setProdinfo(String prodinfo) {
		this.prodinfo = prodinfo;
	}
	public String getCustemail() {
		return custemail;
	}
	public void setCustemail(String custemail) {
		this.custemail = custemail;
	}
	public String getMsgext() {
		return msgext;
	}
	public void setMsgext(String msgext) {
		this.msgext = msgext;
	}
	public String getRespcode() {
		return respcode;
	}
	public void setRespcode(String respcode) {
		this.respcode = respcode;
	}
	public String getRespdesc() {
		return respdesc;
	}
	public void setRespdesc(String respdesc) {
		this.respdesc = respdesc;
	}
	public String getSettledate() {
		return settledate;
	}
	public void setSettledate(String settledate) {
		this.settledate = settledate;
	}
	public String getSetlamt() {
		return setlamt;
	}
	public void setSetlamt(String setlamt) {
		this.setlamt = setlamt;
	}
	public String getCupstracenum() {
		return cupstracenum;
	}
	public void setCupstracenum(String cupstracenum) {
		this.cupstracenum = cupstracenum;
	}
	public String getCupssystime() {
		return cupssystime;
	}
	public void setCupssystime(String cupssystime) {
		this.cupssystime = cupssystime;
	}
	public String getOrgcode() {
		return orgcode;
	}
	public void setOrgcode(String orgcode) {
		this.orgcode = orgcode;
	}
	public String getPanIn() {
		return panIn;
	}
	public void setPanIn(String panIn) {
		this.panIn = panIn;
	}
	public String getMerordernum() {
		return merordernum;
	}
	public void setMerordernum(String merordernum) {
		this.merordernum = merordernum;
	}
	public String getPepdate() {
		return pepdate;
	}
	public void setPepdate(String pepdate) {
		this.pepdate = pepdate;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}
	
	
}
